package org.db2.project.airline.dao;

import java.io.Serializable;
import java.util.List;

/**
 *
 */
public interface GenericDAO<T> {

    void save(T entity) throws DAOException;

    void update(T entity) throws DAOException;

    void delete(T entity) throws DAOException;

    T find(Serializable id) throws DAOException;

    List<T> findAll() throws DAOException;
}
